package cn.tedu.spring.config;

import cn.tedu.spring.life.DBConnect;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
 * @author tune_the last
 * @date 2025/11/7 - 10:48
 * 测试自动扫描
 */
public class TestAppConfig {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        DBConnect dbConnect = context.getBean(DBConnect.class);
        System.out.println(dbConnect);
    }
}
